const http = require("http");

http
  .createServer(function (req, res) {
    console.log("req", req.url);
    res.writeHead(
        200,[
            ["Content-Type", "text/plain;charset=utf8"],
        ]
    )

    res.end("请求已被服务端受理");
  })
  .listen(3000, () => console.log("listening at 3000..."));
